#include "WxSegmentationPerspective.h"
#include "berryIViewLayout.h"

void WxSegmentationPerspective::CreateInitialLayout(berry::IPageLayout::Pointer layout)
{
  std::string editorArea = layout->GetEditorArea();

  layout->AddStandaloneView("org.mitk.views.datamanager",
    false, berry::IPageLayout::LEFT, 0.3f, editorArea);

  berry::IFolderLayout::Pointer left =layout->CreateFolder("LeftFolderControls",
    berry::IPageLayout::BOTTOM, 0.125f, "org.mitk.views.datamanager");

  left->AddView("wx.301.views.interactivesegmentation");
  left->AddView("Wx.301.views.wxliveranalysis");
  left->AddView("org.mitk.views.vessel");

  berry::IViewLayout::Pointer lo = layout->GetViewLayout("wx.301.views.interactivesegmentation");
  lo->SetCloseable(false);
  lo = layout->GetViewLayout("Wx.301.views.wxliveranalysis");
  lo->SetCloseable(false);
  lo = layout->GetViewLayout("org.mitk.views.vessel");
  lo->SetCloseable(false);

  layout->AddStandaloneView("org.mitk.views.imagenavigator",
    false, berry::IPageLayout::BOTTOM, 0.8f, "LeftFolderControls");
}
